

import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/subwayst/swTkStockFlow/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/subwayst/swTkStockFlow/',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/subwayst/swTkStockFlow/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/subwayst/swTkStockFlow/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/subwayst/swTkStockFlow/',
    method: 'put',
    data: obj
  })
}

export function batchDelete(ids) {
  return request({
    url: '/subwayst/swTkStockFlow/batchDelete',
    method: 'post',
    data:ids
  })
}

export function submit(obj) {
  return request({
    url: '/subwayst/swTkStockFlow/submit',
    method: 'put',
    data: obj
  })
}

export function auditObj(obj) {
  return request({
    url: '/subwayst/swTkStockFlow/audit',
    method: 'put',
    data: obj
  })
}

export function exportExcel (obj) {
  return request({
    url: '/subwayst/swTkStockFlow/export',
    method: 'get',
    data: obj,
    responseType: 'blob'
  })
}

